<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>

	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />    

</head>
<body style="padding-top: 30px; padding-bottom: 200px;">
	<div class="col-lg-8" style="margin-bottom: 200px;">
		<div class="col-lg-11 col-lg-offset-1">
			<div class="panel panel-info col-lg-12">
				<div class="panel-title">
					<h4>根据私钥导出钱包</h4>
				</div>
				<div class="panel-body">
					<div class="form-group form-inline col-lg-12">
						<label for="walletOutput" class="control-label col-lg-2 text-right">输入私钥：</label>
						<input type="text" class="form-control col-lg-3" id="walletOutput" placeholder="私钥" />
						<label for="walletPwd" class="control-label col-lg-2 text-right">输入密码：</label>
						<input type="text" class="form-control col-lg-3" id="walletPwd" placeholder="密码" />
						<button class="btn btn-primary col-lg-2 col-lg-offset-1" id="btnWalletOutput">导出钱包</button>
					</div><br />
					<p id="walletOutputInfo" class="text-info"></p>
				</div>
			</div>
		</div>
		
		
		<div class="col-lg-11 col-lg-offset-1">
			<div class="panel panel-info col-lg-12">
				<div class="panel-title">
					<h4>根据钱包生成私钥</h4>
				</div>
				<div class="panel-body">
					<div class="form-group form-inline col-lg-12">
						<label for="walletInput" class="control-label col-lg-2 text-right">输入钱包：</label>
						<input type="text" class="form-control col-lg-3" id="walletInput" placeholder="钱包字符串" />
						<label for="walletInPwd" class="control-label col-lg-2 text-right">输入密码：</label>
						<input type="text" class="form-control col-lg-3" id="walletInPwd" placeholder="钱包密码"/>
						<button class="btn btn-primary col-lg-2 col-lg-offset-1" id="btnWalletInput">生成私钥</button>
					</div><br />
					<p id="walletInputInfo" class="text-info"></p>
				</div>
			</div>
		</div>
		
		<!--
	    	作者：490244211@qq.com
	    	时间：2018-07-17
	    	描述：创建账户
	    -->
		<div class="col-lg-11 col-lg-offset-1">
			<div class="panel panel-info col-lg-12">
				<div class="panel-title">
					<h4>Create New Account</h4>
				</div>
				<div class="panel-body">
					<div class="form-group form-inline col-lg-12">
						<label for="newAccount" class="control-label col-lg-2 text-right">创建账户:</label>
						<input type="text" class="form-control col-lg-6" id="newAccount" placeholder="随你填不填" />
						<button class="btn btn-primary col-lg-2 col-lg-offset-1" id="newBtn">创建账户</button>
					</div><br />
					<p id="newAddress" class="text-danger"></p>
				</div>
			</div>
			
			
			<div class="panel panel-info col-lg-12">
				<div class="panel-title">
					<h4>Query Account</h4>
				</div>
				<div class="panel-body">
					<div class="form-group form-inline col-lg-12">
						<label class="control-label col-lg-2 text-right">查询账户:</label>
						<input type="text" class="form-control col-lg-6" id="queryAccount"  />
						<button class="btn btn-danger col-lg-2 col-lg-offset-1" id="btnQuery">查询账户余额</button>
					</div><br />
					<p id="queryInfo" class="text-danger"></p>
				</div>
			</div>

			<div class="panel panel-info col-lg-12">
				<div class="panel-title">
					<h4>Query Balance data</h4>
				</div>
				<div class="panel-body">
					<div class="form-group form-inline col-lg-12">
						<label class="control-label col-lg-2 text-right">查询账户:</label>
						<input type="text" class="form-control col-lg-6" id="queryAccount2" value="0x1aC2F04ea466991bC91C802150a1D2730D2bBB65" />
						<button class="btn btn-danger col-lg-2 col-lg-offset-1" id="btnQuery2">查询账户余额</button>
					</div><br />
					<p id="queryInfo2" class="text-danger"></p>
				</div>
			</div>
			
			<div class="panel panel-info col-lg-12">
				<div class="panel-title">
					<h4>Transfer ETH</h4>
				</div>
				<div class="panel-body">
					<div class="form-group form-inline col-lg-12">
						<label class="control-label col-lg-2 text-right ">目标地址（ETH）：</label>
						<input type="text" class="form-control col-lg-4" id="toAddr" placeholder="目标地址" />
						<label class="control-label col-lg-2 text-right">数量：</label>
						<input type="number" class="form-control col-lg-4" id="toVal" placeholder="数量" />
						
					</div>
					<div class="form-group form-inline col-lg-12">
						<label class="control-label col-lg-2 text-right">输入秘钥：</label>
						<input type="text" class="form-control col-lg-4" id="toKey" placeholder="keystore" />
						<button class="btn btn-info col-lg-1 col-lg-offset-2" id="btnTransEth">转账</button>
					</div>
					<br />
					<p id="transEthRes" class="text-info"></p>
				</div>
			</div>
			
			<div class="panel panel-info col-lg-12">
				<div class="panel-title">
					<h4>Get Pending Block</h4>
				</div>
				<div class="panel-body">
					<button class="btn btn-info col-lg-1 col-lg-offset-1" id="pending">Search</button>
				</div><br />
				<p class="text-info" id="pendingInfo"></p>
			</div>
		
			<!--<div class="panel panel-info col-lg-12">
				<div class="panel-title"><h4>获得合约信息：</h4></div>
				<div class="panel-body form-group form-inline">
					<label class="control-label col-lg-2 text-right">合约地址：</label>
					<input type="text" class="form-control col-lg-4" id="contractAddr" placeholder="合约地址" />
					<button class="btn btn-info col-lg-1 col-lg-offset-1" id="btnContractAddr">查询</button>
				</div><br />
				<p id="contractInfo" class="text-info"></p>
			</div>-->
		
			<div class="panel panel-info col-lg-12">
				<div class="panel-title"><h4>编译合约：<strong style="color: red;">(The method eth_compileSolidity does not exist/is not available)</strong></h4></div>
				<div class="panel-body">
					<div class="form-group form-inline">
						<label class="control-label col-lg-2 text-right">合约源码：</label>
						<textarea class="form-control col-lg-10" style="width: 80%;height: 200px;" placeholder="合约源码" id="contractSource"></textarea>
					</div>
					<div class="form-group form-inline">
						<button class="btn btn-info col-lg-1 col-lg-offset-1" id="compile">编译</button>
					</div>
				</div><br />
				<p class="text-info" id="compileInfo"></p>
			</div>
		
			<div class="panel panel-info col-lg-12">
				<div class="panel-title"><h4>发布简单智能合约：</h4></div>
				<div class="panel-body">
					<div class="form-group">
						<label class="control-label col-lg-2 text-right">Source Code：</label>
						<textarea class="form-control col-lg-10" style="width: 80%;height: 200px;" placeholder="Source Code" id="sourceCode">60806040526000600560006101000a81548160ff02191690831515021790555034801561002b57600080fd5b50604051604080610a098339810180604052810190808051906020019092919080519060200190929190505050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506108de8061012b6000396000f3006080604052600436106100af576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806307da68f5146100b457806338af3eed146100cb5780633eaf9ab9146101225780634b750334146101795780638620410b146101a45780638da5cb5b146101cf57806397779e1b14610226578063a6f2ae3a14610255578063be9a65551461025f578063e4849b3214610276578063f7d97577146102a3575b600080fd5b3480156100c057600080fd5b506100c96102da565b005b3480156100d757600080fd5b506100e0610353565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561012e57600080fd5b50610137610379565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561018557600080fd5b5061018e61039f565b6040518082815260200191505060405180910390f35b3480156101b057600080fd5b506101b96103a5565b6040518082815260200191505060405180910390f35b3480156101db57600080fd5b506101e46103ab565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561023257600080fd5b5061023b6103d0565b604051808215151515815260200191505060405180910390f35b61025d6103e3565b005b34801561026b57600080fd5b506102746105b3565b005b34801561028257600080fd5b506102a16004803603810190808035906020019092919050505061062c565b005b3480156102af57600080fd5b506102d86004803603810190808035906020019092919080359060200190929190505050610844565b005b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561033657600080fd5b6001600560006101000a81548160ff021916908315150217905550565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b60045481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600560009054906101000a900460ff1681565b6000600560009054906101000a900460ff1615151561040157600080fd5b60045434029050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f1935050505050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561052557600080fd5b505af1158015610539573d6000803e3d6000fd5b505050507fafbc335007d521504c4ecf6375fff270a9000da85ceabbf2507af35516d46c71333483604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a150565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561060f57600080fd5b6000600560006101000a81548160ff021916908315150217905550565b6000600560009054906101000a900460ff1615151561064a57600080fd5b6003548281151561065757fe5b0490503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501561084057600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cae9ca51600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200180602001828103825260028152602001807f30780000000000000000000000000000000000000000000000000000000000008152506020019350505050600060405180830381600087803b1580156107b457600080fd5b505af11580156107c8573d6000803e3d6000fd5b505050507f05f8dfe0c43ac74f1dc6e0021ac670e3ad7456ee878d38244e6037977cfb7e17338284604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a15b5050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156108a057600080fd5b816004819055508060038190555050505600a165627a7a72305820656243d6a59213f7b50151e707edb4466fc5ff4361044bb96010cabb588384340029</textarea>
					</div>
					<br />
					<div class="form-group">
						<label class="control-label col-lg-2 text-right">Source ABI: </label>
						<textarea class="form-control col-lg-10" style="width: 80%;height: 200px;" placeholder="Source ABI" id="sourceAbi">[
								{
									"constant": false,
									"inputs": [],
									"name": "stop",
									"outputs": [],
									"payable": false,
									"stateMutability": "nonpayable",
									"type": "function"
								},
								{
									"constant": true,
									"inputs": [],
									"name": "beneficiary",
									"outputs": [
										{
											"name": "",
											"type": "address"
										}
									],
									"payable": false,
									"stateMutability": "view",
									"type": "function"
								},
								{
									"constant": true,
									"inputs": [],
									"name": "vccToken",
									"outputs": [
										{
											"name": "",
											"type": "address"
										}
									],
									"payable": false,
									"stateMutability": "view",
									"type": "function"
								},
								{
									"constant": true,
									"inputs": [],
									"name": "sellPrice",
									"outputs": [
										{
											"name": "",
											"type": "uint256"
										}
									],
									"payable": false,
									"stateMutability": "view",
									"type": "function"
								},
								{
									"constant": true,
									"inputs": [],
									"name": "buyPrice",
									"outputs": [
										{
											"name": "",
											"type": "uint256"
										}
									],
									"payable": false,
									"stateMutability": "view",
									"type": "function"
								},
								{
									"constant": true,
									"inputs": [],
									"name": "owner",
									"outputs": [
										{
											"name": "",
											"type": "address"
										}
									],
									"payable": false,
									"stateMutability": "view",
									"type": "function"
								},
								{
									"constant": true,
									"inputs": [],
									"name": "isStop",
									"outputs": [
										{
											"name": "",
											"type": "bool"
										}
									],
									"payable": false,
									"stateMutability": "view",
									"type": "function"
								},
								{
									"constant": false,
									"inputs": [],
									"name": "buy",
									"outputs": [],
									"payable": true,
									"stateMutability": "payable",
									"type": "function"
								},
								{
									"constant": false,
									"inputs": [],
									"name": "start",
									"outputs": [],
									"payable": false,
									"stateMutability": "nonpayable",
									"type": "function"
								},
								{
									"constant": false,
									"inputs": [
										{
											"name": "amount",
											"type": "uint256"
										}
									],
									"name": "sell",
									"outputs": [],
									"payable": false,
									"stateMutability": "nonpayable",
									"type": "function"
								},
								{
									"constant": false,
									"inputs": [
										{
											"name": "_buyPrice",
											"type": "uint256"
										},
										{
											"name": "_sellPrice",
											"type": "uint256"
										}
									],
									"name": "setPrice",
									"outputs": [],
									"payable": false,
									"stateMutability": "nonpayable",
									"type": "function"
								},
								{
									"inputs": [
										{
											"name": "beneficiaryAddr",
											"type": "address"
										},
										{
											"name": "tokenAddr",
											"type": "address"
										}
									],
									"payable": false,
									"stateMutability": "nonpayable",
									"type": "constructor"
								},
								{
									"anonymous": false,
									"inputs": [
										{
											"indexed": false,
											"name": "from",
											"type": "address"
										},
										{
											"indexed": false,
											"name": "ethNum",
											"type": "uint256"
										},
										{
											"indexed": false,
											"name": "tokenNum",
											"type": "uint256"
										}
									],
									"name": "BuyTrans",
									"type": "event"
								},
								{
									"anonymous": false,
									"inputs": [
										{
											"indexed": false,
											"name": "from",
											"type": "address"
										},
										{
											"indexed": false,
											"name": "ethNum",
											"type": "uint256"
										},
										{
											"indexed": false,
											"name": "tokenNum",
											"type": "uint256"
										}
									],
									"name": "SellTrans",
									"type": "event"
								}
							]</textarea>
					</div>
					<br>
					<div class="form-group col-lg-12">
						<label class="control-label col-lg-2 text-right">参数列表：</label>
						<input type="text" id="deployArgs" class="form-control col-lg-10 col-md-10 block" placeholder="['100000000', 'VCC', 'vcc']" value="['0x18F72FF4B2049b24B60705F6F59d733438361152']">
					</div>
					<br />
					<div class="form-group form-inline">
						<button class="btn btn-info col-lg-1 col-lg-offset-1" id="deploy">deploy</button>
					</div>
					<br />
					<p id="deployInfo" class="text-info"></p>
				</div>
			</div>
		
			<div class="panel panel-info col-lg-12">
				<div class="panel-title"><h4>调用合约方法：</h4></div>
				<div class="panel-body">
					<div class="form-group form-inline col-lg-12">
						<label class="control-label col-lg-2 text-right">选择方法：</label>
						<select class="form-control col-lg-8" id="contractFunc"></select>
						<button class="btn btn-info col-lg-1 col-lg-offset-1" id="query">Query</button>
						<button class="btn btn-info col-lg-1 col-lg-offset-1" id="invoke">Invoke</button>
					</div>
				</div>
				<br />
			</div>
		
			<div class="panel panel-info col-lg-12">
				<div class="panel-title"><h4>Transfer Token</h4></div>
				<div class="panel-body">
					<div class="form-group form-inline col-lg-12">
						<label class="control-label col-lg-2 text-right">目标地址（Token）：</label>
						<input type="text" class="form-control col-lg-4" id="toAddrToken" placeholder="目标地址" />
						<label class="control-label col-lg-2 text-right">数量：</label>
						<input type="number" class="form-control col-lg-4" id="toValToken" placeholder="数量" />
					</div>
					<div class="form-group form-inline col-lg-12">
						<label class="control-label col-lg-2 text-right">请输入秘钥：</label>
						<input type="text" class="form-control col-lg-3" id="tokeyToken" placeholder="秘钥" />
						<button class="btn btn-info col-lg-1 col-lg-offset-2" id="btnTransToken">转账</button>
					</div>
				</div><br />
				<p id="transTokenRes" class="text-info"></p>
			</div>
			
			<div class="panel panel-info col-lg-12">
				<div class="panel-title">Transfer From Others（ETH）: </div>
				<div class="panel-body">
					<div class="form-group form-inline col-lg-12">
						<label class="control-label col-lg-2 text-right">转出地址：</label>
						<input type="text" class="form-control col-lg-4" id="fromAddrEth" placeholder="请输入转出账户地址" />
						<label class="control-label col-lg-2 text-right">账户私钥：</label>
						<input type="password" class="form-control col-lg-4" id="fromAddrKey" placeholder="请输入私钥" />
					</div>
					<div class="form-group form-inline col-lg-12">
						<label class="control-label col-lg-2 text-right">转入地址：</label>
						<input type="text" class="form-control col-lg-3" id="toAddrEth" placeholder="请输入转入地址" />
						<label class="control-label col-lg-2 text-right">转入数量：</label>
						<input type="number" class="form-control col-lg-3" id="toValEth" placeholder="请输入转入数量" />
						<button class="btn btn-info col-lg-1 col-lg-offset-1" id="btnOtherEth">转账</button>
					</div>
					<br />
					<p id="transOtherEth" class="text-info"></p>
				</div>
			</div>
			
			<div class="panel panel-info col-lg-12">
				<div class="panel-title">Transfer From Ohters(Token):</div>
				<div class="panel-body">
					<div class="form-group form-inline col-lg-12">
						<label class="control-label col-lg-2 text-right">转出地址：</label>
						<input type="text" class="form-control col-lg-4" id="fromAddrOtherToken" placeholder="请输入转出账户地址" />
						<label class="control-label col-lg-2 text-right">转出秘钥：</label>
						<input type="text" class="form-control col-lg-4" id="fromAddrOtherKeyToken" placeholder="请输入转出地址的秘钥" />
					</div>
					<div class="form-group form-inline col-lg-12">
						<label class="control-label col-lg-2 text-right">转入地址：</label>
						<input type="text" class="form-control col-lg-3" id="toAddrOtherToken" placeholder="请输入转入账户地址" />
						<label class="control-label col-lg-2 text-right">数量：</label>
						<input type="number" class="form-control col-lg-3" id="toValOtherToken" placeholder="请输入数量" />
						<button class="btn btn-info col-lg-1 col-lg-offset-1" id="btnOtherToken">转账</button>
					</div>
					<br />
					<p id="transOtherToken" class="text-info"></p>
				</div>
			</div>
			
			<div class="panel panel-info col-lg-12">
				<div class="panel-title">Approve Account:</div>
				<div class="panel-body">
					<div class="form-group form-inline">
						<label class="control-label col-lg-1 text-right">设置地址：</label>
						<input type="text" class="form-control col-lg-2" id="approveAddr" placeholder="请输入地址" />
						<label class="control-label col-lg-1 text-right">设置值：</label>
						<input type="number" class="form-control col-lg-2" id="approveVal" placeholder="请输入值" />
						<label class="control-label col-lg-1 text-right">操作私钥：</label>
						<input type="text" class="form-control col-lg-2" id="approveKey" placeholder="操作私钥" />
						<button class="btn btn-info col-lg-1 col-lg-offset-1" id="btnApprove">提交</button>
					</div><br />
					<p class="text-info" id="approveRes"></p>
				</div>
			</div>

			<div class="panel panel-info col-lg-12">
				<div class="panel-title">Allowance account</div>
				<div class="panel-body">
					<div class="form-group form-inline">
						<label class="control-label col-lg-1 text-right">查询地址</label>
						<input type="text" class="form-control col-lg-2" id="allowAddr">
						<button class="btn btn-info col-lg-1 col-lg-offset-1" id="btnAllow">查询</button>
					</div>
				</div><br>
				<p class="text-info" id="allowRes"></p>
			</div>

			<div class="panel panel-info col-lg-12">
				<div class="panel-title">设置价格</div>
				<div class="panel-body">
					<div class="form-group form-inline">
						<label class="control-label col-lg-1 text-right">调用人私钥</label>
						<input type="text" id="priceKey" placeholder="输入私钥" class="form-control col-lg-2" value="37e1d425914bea238a4e3ea744a0969951d82ab714e5e6f43da40199a1320db7">
						<label class="control-label col-lg-1 text-right">出售价格</label>
						<input type="text" id="priceSellValue" class="form-control col-lg-2" placeholder="输入您要设置的卖出价格" value="14000000000000000">
						<label class="control-label col-lg-1 text-right">买入价格</label>
						<input type="text" id="priceBuyValue" class="form-control col-lg-2" placeholder="输入您要设置的买入价格" value="15000000000000000">
						<button class="btn btn-info col-lg-1 col-lg-offset-1" id="btnPrice">提交</button>
					</div>
				</div><br>
				<p class="text-info" id="priceRes"></p>
			</div>

			<div class="panel panel-info col-lg-12">
				<div class="panel-title">sell token</div>
				<div class="panel-body">
					<div class="form-group form-inline">
						<label class="control-label col-lg-1 text-right">出售人私钥</label>
						<input type="text" id="sellTokenKey" class="form-control col-lg-2" placeholder="出售人私钥">
						<label class="control-label col-lg-1 text-right">出售数量</label>
						<input type="text" id="sellTokenValue" class="form-control col-lg-2" placeholder="出售数量">
						<button type="button" id="btnSellToken" class="btn btn-info col-lg-1 col-lg-offset-1">出售</button>
					</div>
				</div><br>
				<p class="text-info" id="sellRes"></p>
			</div>

			<div class="panel panel-info col-lg-12">
				<div class="panel-title">bug token</div>
				<div class="panel-body">
					<div class="form-group form-inline">
						<label class="control-label col-lg-1 text-right">购买人私钥</label>
						<input type="text" class="form-control col-lg-2" id="buyTokenKey" placeholder="购买人私钥">
						<label class="control-label col-lg-1 text-right">购买数量</label>
						<input type="text" class="form-control col-lg-2" id="buyTokenValue" placeholder="购买数量">
						<button type="button" class="btn btn-info col-lg-1 col-lg-offset-1" id="btnBuyToken">购买</button>
						</div>
				</div><br>
				<p class="text-info" id="buyTokenRes"></p>
			</div>
			
			<div class="panel panel-info col-lg-12">
				<div class="panel-title">销售合约——设置价格</div>
				<div class="panel-body">
					<div class="form-group form-inline">
						<label class="control-label col-lg-1 text-right">操作人私钥</label>
						<input type="text" class="form-control col-lg-2" id="sellSetPriceKey" placeholder="操作人私钥" value="37e1d425914bea238a4e3ea744a0969951d82ab714e5e6f43da40199a1320db7">
						<label class="control-label col-lg-1 text-right">买入比例</label>
						<input type="text" class="form-control col-lg-2" id="sellBuyPrice" placeholder="买入比例：  1:9500" value="9500">
						<label class="control-label col-lg-1 text-right">卖出比例</label>
						<input type="text" class="form-control col-lg-2" id="sellSellPrice" placeholder="卖出比例：  1:10000" value="10000">
						<button class="btn btn-info col-lg-1 col-lg-offset-1" id="btnSellPrice">提交</button>
					</div>
				</div><br>
				<p class="text-info" id="sellSetPriceRes"></p>
			</div>

			<div class="panel panel-info col-lg-12">
				<div class="panel-title">销售合约——买入vcc</div>
				<div class="panel-body">
					<div class="form-group form-inline">
						<label class="control-label col-lg-1 text-right">操作人私钥</label>
						<input type="text" id="sellBuyVccKey" class="form-control col-lg-2">
						<label class="control-label col-lg-1 text-right">兑换额度</label>
						<input type="number" id="sellBuyVccValue" class="form-control col-lg-2">
						<button class="btn btn-info col-lg-1 col-lg-offset-1" id="btnSellBuyVcc">提交</button>
					</div>
				</div><br>
				<p class="text-info" id="sellBuyVccRes"></p>
			</div>

			<div class="panel panel-info col-lg-12">
				<div class="panel-title">销售合约——卖出vcc</div>
				<div class="panel-body">
					<div class="form-group form-inline">
						<label class="control-label col-lg-1 text-right">操作人私钥</label>
						<input type="text" id="sellSellVccKey" class="form-control col-lg-2">
						<label class="control-label col-lg-1 text-right">卖出数量</label>
						<input type="number" id="sellSellVccNum" class="form-control col-lg-2">
						<button class="btn btn-info col-lg-1 col-lg-offset-1" id="btnSellSellVcc">提交</button>
					</div>
				</div><br>
				<p class="text-info" id="sellSellVccRes"></p>
			</div>

			<div class="panel panel-info col-lg-12">
				<div class="panel-title">销售合约——提ETH币</div>
				<div class="panel-body">
					<div class="form-group form-inline">
						<label class="control-label col-lg-1 text-right">操作人私钥</label>
						<input type="text" id="extractKey" class="form-control col-lg-2">
						<label class="control-label col-lg-1 text-right">提取数量</label>
						<input type="number" id="extractNum" class="form-control col-lg-2">
						<button class="btn btn-info col-lg-1 col-lg-offset-1" id="btnExtract">提交</button>
					</div>
				</div><br>
				<p class="text-info" id="extractRes"></p>
			</div>

			<div class="panel panel-info col-lg-12">
				<div class="panel-title">销售合约——提VCC代币</div>
				<div class="panel-body">
					<div class="form-group form-inline">
						<label class="control-label col-lg-1 text-right">操作人私钥</label>
						<input class="form-control col-lg-2" type="text" id="extractTokenKey" value="37e1d425914bea238a4e3ea744a0969951d82ab714e5e6f43da40199a1320db7">
						<label class="control-label col-lg-1 text-right">提取数量</label>
						<input type="number" id="extractTokenNum" class="form-control col-lg-2">
						<button class="btn btn-info col-lg-1 col-lg-offset-1" id="btnExtractToken">提交</button>
					</div>
				</div><br>
				<p class="text-info" id="extractTokenRes"></p>
			</div>

			<div class="panel panel-info col-lg-12">
				<div class="panel-title">销售合约——暂停</div>
				<div class="panel-body">
					<div class="form-group form-inline">
						<label class="control-label col-lg-1">操作人私钥</label>
						<input type="text" id="sellStopKey" class="form-control col-lg-1" value="37e1d425914bea238a4e3ea744a0969951d82ab714e5e6f43da40199a1320db7">
						<button class="btn btn-info col-lg-1 col-lg-offset-1" id="btnSellStop">stop</button>
					</div>
				</div><br>
				<p class="text-info" id="sellStopRes"></p>
			</div>

			<div class="panel panel-info col-lg-12">
				<div class="panel-title">销售合约——启动</div>
				<div class="panel-body">
					<div class="form-group form-inline">
						<label class="control-label col-lg-1">操作人私钥</label>
						<input type="text" id="sellStartKey" class="form-control col-lg-1" value="37e1d425914bea238a4e3ea744a0969951d82ab714e5e6f43da40199a1320db7">
						<button class="btn btn-info col-lg-1 col-lg-offset-1" id="btnSellStart">start</button>
					</div>
				</div><br>
				<p class="text-info" id="sellStartRes"></p>
			</div>


			<div class="panel panel-info col-lg-12">
				<div class="panel-title">销售合约——清理合约</div>
				<div class="panel-body">
					<div class="form-group form-inline">
						<label class="control-label col-lg-1">操作人私钥</label>
						<input type="text" class="form-control col-lg-2" id="sellClearKey" value="37e1d425914bea238a4e3ea744a0969951d82ab714e5e6f43da40199a1320db7">
						<button class="btn btn-info col-lg-1 col-lg-offset-1" id="btnSellClear">提交</button>
					</div>
				</div><br>
				<p class="text-info" id="sellClearRes"></p>
			</div>

			<div class="panel panel-info col-lg-12">
				<div class="panel-title">离线签名测试</div>
				<div class="panel-body">
					<div class="form-group form-inline">
						<label class="control-label col-lg-1">操作人私钥</label>
						<input type="text" class="form-control col-lg-2" value="37e1d425914bea238a4e3ea744a0969951d82ab714e5e6f43da40199a1320db7">
						<button class="btn btn-info col-lg-2 col-lg-offset-1" id="testOffSign">生成签名信息</button>
					</div>
				</div><br>
				<p class="text-info" id="signRes"></p>
			</div>
			
			<div class="panel panel-info col-lg-12">
				<div class="panel-title">查询ETH交易历史记录</div>
				<div class="panel-body">
					<div class="form-group form-inline">
						<label class="control-label col-lg-1">查询地址</label>
						<input type="text" class="form-control col-lg-2" id="queryETHHisAddr" value="0x1aC2F04ea466991bC91C802150a1D2730D2bBB65">
						<button class="btn btn-info col-lg-1 col-lg-offset-1" id="btnQueryETHHis">查询</button>
					</div>
				</div><br>
				<p class="text-info" id="queryETHHisRes"></p>
			</div>

			<div class="panel panel-info col-lg-12">
				<div class="panel-title">查询VCC交易历史记录</div>
				<div class="panel-body">
					<div class="form-group form-inline">
						<label class="control-label col-lg-1">查询地址</label>
						<input type="text" id="queryVccHisAddr" class="form-control col-lg-2" value="0x1aC2F04ea466991bC91C802150a1D2730D2bBB65">
						<button class="btn btn-info col-lg-1 col-lg-offset-1" id="btnQueryVccHis">查询</button>
					</div>
				</div><br>
				<p class="text-info" id="queryVccHisRes"></p>
			</div>

			<div class="panel panel-info col-lg-12">
				<div class="panel-title">批量空投</div>
				<div class="panel-body">
					<div class="form-group">
						<label>操作人私钥</label>
						<input type="text" id="airKey" class="form-control" value="37e1d425914bea238a4e3ea744a0969951d82ab714e5e6f43da40199a1320db7">
						<label>合约地址</label>
						<input type="text" id="airContractAddr" class="form-control" value="0x18F72FF4B2049b24B60705F6F59d733438361152">
						<label>空投数量</label>
						<input type="number" id="airNumber" class="form-control" value="10">
						<label>空投地址</label>
						<input type="text" id="airAddrs" class="form-control" value="['0x4e13A733826cB2146735534d8e56602384655393']">
					</div>
					<div class="form-group">
						<button class="btn btn-info col-lg-2 col-lg-offset-5" id="airSub">开始空投</button>
					</div>
				</div><br>
				<p class="text-info" id="airRes"></p>
			</div>


		</div>

	</div>
	
	<div class="col-lg-4 col-lg-offset-8 navbar-fixed-top" style="margin-top: 30px;">
		
		<div class="col-lg-11">
			
			<div class="panel panel-info col-lg-12">
				<div class="panel-title"><h4>网络信息：</h4></div>
				<div class="panel-body eth-info"></div>
			</div>
			
			<div class="panel panel-info col-lg-12">
				<div class="panel-title"><h4>本地信息：</h4></div>
				<div class="panel-body local-info"></div>
			</div>
			
			<div class="panel panel-info col-lg-12">
				<div class="panel-title"><h4>Token 信息：</h4></div>
				<div class="panel-body token-info"></div>
			</div>
			
		</div>
		
	</div>
    
	<script src="js/jquery.min.js"></script>
	<script src="js/layer/layer.js"></script>
	<script src="js/ethereum/ethereumjs-tx-1.3.3.js"></script>
	<script src="js/web3.min.js"></script>
	<script src="js/common.js"></script>
	<script src="js/contract.js"></script>
	<script src="js/index.js"></script>
	

</body>
</html>